package com.redwood.report.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.redwood.report.R;
import com.redwood.report.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by sp on 2018/12/12.
 */

public class JMainSecActivity extends BaseActivity {


    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.title_bar)
    RelativeLayout titleBar;
    @BindView(R.id.fl_jiankong)
    FrameLayout flJiankong;
    @BindView(R.id.root_layout)
    LinearLayout rootLayout;
    @BindView(R.id.fl_lishi)
    FrameLayout flLishi;
    @BindView(R.id.fl_tongji)
    FrameLayout flTongji;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jmain_sec);
        ButterKnife.bind(this);
    }

    @OnClick()
    public void onClick() {

    }

    @OnClick({R.id.fl_lishi, R.id.fl_tongji,R.id.fl_jiankong})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.fl_lishi:
                startActivity(new Intent(getActivity(), LishiChaXunActivity.class));
                break;
            case R.id.fl_tongji:
                startActivity(new Intent(getActivity(), TongjiActivity.class));
                break;
            case R.id.fl_jiankong:
                startActivity(new Intent(getActivity(), MainActivity.class));
                break;
        }
    }
}
